package com.custom;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List; 
import java.util.Map; 
import android.content.Context; 
import android.view.View; 
import android.view.ViewGroup; 
import android.widget.ListAdapter;
import android.widget.SimpleAdapter;   
public class MySimpleAdapter extends SimpleAdapter implements ListAdapter {

	public ArrayList<HashMap<String, Object>> getmItemList() {
		return mItemList;
	}
	public void setmItemList(ArrayList<HashMap<String, Object>> hashList) {
		this.mItemList = hashList;
	}

	public int count = 10;
	private ArrayList<HashMap<String, Object>> mItemList;
    public void setCount(int count) {
		this.count = count;
	}
	public int getCount() {
            return count;
    }
    public MySimpleAdapter(Context context,
            List<? extends Map<String, ?>> data, int resource, String[] from,
            int[] to) {
        super(context, data, resource, from, to);
        // TODO Auto-generated constructor stub
        mItemList = (ArrayList<HashMap<String, Object>>) data;
    }

    @Override
    public View getView(int position, View convertView, ViewGroup parent) {
        // TODO Auto-generated method stub
        View localView = super.getView(position, convertView, parent);
        return localView;
    }
}


